package models;

import play.db.jpa.GenericModel;
import play.db.jpa.Model;
import play.data.validation.Required;
import play.data.validation.MaxSize;
import java.math.BigDecimal;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;


/**
 * Model Empleado generated by Play!
 */

@Entity
@Table(name="EMPLEADO")
public class Empleado extends GenericModel {
	
	@Id
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SEQ_EMPLEADO")
	@SequenceGenerator(name="SEQ_EMPLEADO", sequenceName="SEQ_EMPLEADO", allocationSize=1)
	private long idempleador;
    @Required
    @MaxSize(40)
    public String nombres;
    @Required
    @MaxSize(40)
    public String apellidos;
    @Required
    @MaxSize(50)
    public String direccion;
    @Required
    @MaxSize(8)
    public String telefono;
    @MaxSize(8)
    public String celular;
    @Required
    public Date fechanacimiento;
    @MaxSize(30)
    public String email;
    @Required
    public String sexo;
    @Required
    @MaxSize(20)
    public String nacionalidad;
    @Required
    @MaxSize(9)
    public String dui;
    @Required
    @MaxSize(14)
    public String nit;
    @Required
    @MaxSize(10)
    public String nup;
    @Required
    @MaxSize(10)
    public String isss;
    //@OneToMany(mappedBy="EMPLEADO")  
    //public Set<Usuario> usuarios = new HashSet<Usuario>(0);
    //@OneToMany(mappedBy="EMPLEADO")  
    //public Set<Docente> docentes = new HashSet<Docente>(0);
    //@OneToMany(mappedBy="EMPLEADO")  
    //public Set<Administrativo> administrativos = new HashSet<Administrativo>(0);

    //default constructor 
    public Empleado() {
    }
    public Empleado(long idempleador) {
     	this.idempleador = idempleador;
    }
   


}


